<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>insideIframeDemo01</title>
</head>
<body>
    <h1>I'm inside iframe, I'll break out!</h1>
    <script type="text/javascript">
        // 参考: http://blog.sina.com.cn/s/blog_7eb3a425010119y7.html
        window.onload = function(){
            if (top.location != self.location) {
                top.location = self.location;
            }
        };
    </script>
</body>
</html>